From 3ac85303c51e4130bc2b8000cd46e12646c7e7d9 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Fri, 14 Jul 2023 21:57:23 +0100 Subject: Convert LlvmCodeGenDefineFunctionTests to use snapshots --- ...compiler.testing.snapshots.Snapshotter)].expected | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.llvm.LlvmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected (limited to 'snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.llvm.LlvmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected') diff --git a/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.llvm.LlvmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.llvm.LlvmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected new file mode 100644 index 00000000..0d9d77c0 --- /dev/null +++ b/snapshots/[engine:junit-jupiter]/[class:org.shedlang.compiler.backends.llvm.LlvmCodeGenDefineFunctionTests]/[method:canDefineMinimalFunction(org.shedlang.compiler.testing.snapshots.Snapshotter)].expected @@ -0,0 +1,20 @@ +Stack: + * %closureValue__0 + +Instructions: + +%sizePtr__0 = getelementptr {ptr, [0 x i64]}, ptr null, i64 0 +%size__0 = ptrtoint ptr %sizePtr__0 to i64 +%closurePointer__0 = call ptr @shed__runtime__alloc(i64 %size__0) +%closureFunctionPointerPointer__0 = getelementptr {ptr, [0 x i64]}, ptr %closurePointer__0, i64 0, i32 0 +store ptr @shed__fun__f__0, ptr %closureFunctionPointerPointer__0 +%closureValue__0 = ptrtoint ptr %closurePointer__0 to i64 + +Top-level entities: + +define i64 @shed__fun__f__0(ptr %closurePointer__0) { + ret i64 0 +} + +Shed locals: + -- cgit v1.2.3